ostree/trivial-httpd: Add log message for autoexit
authorDan Nicholson <nicholson@endlessm.com>
Fri, 18 Oct 2019 16:50:39 +0000 (10:50 -0600)
committerDan Nicholson <nicholson@endlessm.com>
Fri, 24 Jan 2020 20:11:54 +0000 (13:11 -0700)
This is useful when checking if the daemon actually exited since we
don't store the child PID anywhere.

src/ostree/ostree-trivial-httpd.c

index e5dfc320f859f613b9f6015fdc625fde6c263d13..a38abbea6110498e0c98d0e51c7c74d2e1b55000 100644 (file)
@@ -494,6 +494,7 @@ on_dir_changed (GFileMonitor  *mon,
 
   if (event == G_FILE_MONITOR_EVENT_DELETED)
     {
+      httpd_log (self, "root directory removed, exiting\n");
       self->running = FALSE;
       g_main_context_wakeup (NULL);
     }